<?php
	require(dirname(__FILE__) . '/includes/init.php');
if(empty($_REQUEST['sn'])){
	header("Location: customerservice.php\n");
}else{
	$sql = "SELECT * FROM ".$ecs->table('tracing')." WHERE order_id='".$_REQUEST['sn']."'";
	$trace_list = $GLOBALS['db']->getAll($sql);
	//print_r($trace_list);
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>管理中心 - 跟进记录列表 </title>
<meta name="robots" content="noindex, nofollow">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="styles/general.css" rel="stylesheet" type="text/css" />
<link href="styles/main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.min.js"></script>
</head>
<body>
 
<h1>
<span class="action-span"><a href="vip_orders.php">回到大客户订单列表</a></span>
<span class="action-span1"><a target="_top" href="index.php?act=main">管理中心</a> </span><span id="search_id" class="action-span1"> - 跟进记录列表 </span>
<div style="clear:both"></div>
</h1>
  <div class="list-div" id="listDiv">
 
<table cellpadding="3" cellspacing="1">
  <tr>
    <th>跟进人</th>
	<th>状态</th>
	<th>跟进时间</th>
	<th>跟进内容</th>
  <tr>
  <?php 
	if(count($trace_list)>0){
	foreach($trace_list AS $index => $array_val){
  ?>

   <tr>
    <td><?php echo $array_val['trace_name']?></td>
    <td><?php echo $array_val['status']?></td>
    <td><?php echo date('Y-m-d H:i:s',$array_val['trace_time']);?></td>
    <td><?php echo $array_val['contents']?></td>
  <tr>
  <?php 
      } 
	}
  ?>
  </table>
 
<!-- 分页 -->
  </div>
</body>
</html>